Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 8 - Video Digitizer Components / Video Digitizer Components Reference
Video Digitizer Component Functions / Selectively Displaying Video


VDSetKeyColorRange

Some video digitizer components that support key colors may allow applications to set a range of key color values. The key color range is expressed as a range of RGB color values. The VDSetKeyColorRange function allows your application to define a key color range.

pascal VideoDigitizerError VDSetKeyColorRange
                               (VideoDigitizerComponent ci,
                                 RGBColor *minRGB, 
                                 RGBColor *maxRGB);
ci
Specifies the video digitizer component for the request. Applications obtain this reference from the Component Manager's OpenComponent function.
minRGB
Contains a pointer to a field that contains the lower bound of the key color range. All colors in the color table between the color specified by the minRGB parameter and the color specified by the maxRGB parameter are considered key colors.
maxRGB
Contains a pointer to a field that contains the upper bound of the key color range. All colors in the color table between the color specified by the minRGB parameter and the color specified by the maxRGB parameter are considered key colors.
DESCRIPTION
If the digitizer component cannot accommodate all the colors that are defined in the specified range, it returns a result value of noMoreKeyColors.

RESULT CODES
noErr0No error
digiUnimpErr-2201Function not supported
noMoreKeyColors-2205Key color list is full
SEE ALSO
Your application can obtain the current key color range by calling the VDGetKeyColorRange function, which is described on page 8-85.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help